www.gusucode.com > 酷维企业网站CMS管理系统 v2.1.0 > 酷维企业网站CMS管理系统 v2.1.0\code\User_HotelSubmit.asp
<% '程序名称:酷维企业网站程序CMS '运行环境:ASP+ACCESS '程序大小:4.60MB '软件类型:ASP源码 '联系方式:QQ:921072227 '程序演示:企业程序 '官方网站:http://cms.coczz.com %> <% if request.Cookies("Gemisum")("username")="" then response.write "<script LANGUAGE='javascript'>alert('网络超时或者您还没有登录,请登录!');history.go(-1);</script>" end if if request.Cookies("Gemisum")("reglx")<>3 then response.write "<script LANGUAGE='javascript'>alert('你不是企业会员!');history.go(-1);</script>" end if %> <!--#include file="connection.asp"--> <% hotelname=trim(request("hotelname")) hotelprovince=trim(request("hotelprovince")) hotelcity=trim(request("hotelcity")) set rs=server.createobject("adodb.recordset") sqltext="select * from hotelb where c_name='"&hotelname&"' and province='"&hotelprovince&"' and city='"&hotelcity&"'" rs.open sqltext,conn,3,3 if not rs.eof and not rs.bof then Response.Redirect "messagebox.asp?msg=此酒店在同一地点已经注册过,请注册其他酒店!" else '添加一条记录到数据库 rs.addnew rs("c_name")=request.form("hotelname") rs("level")=request.form("hotellevel") rs("province")=request.form("szSheng") rs("city")=request.form("shucity") rs("info")=request.form("hotelinfo") rs("logurl")=request.form("hotellogurl") rs("logurl2")=request.form("hotellogurl2") rs("logurl3")=request.form("hotellogurl3") rs("tuijian_id")=request.form("tuijian1") rs("User")=request.Cookies("Gemisum")("username") rs("Audit")=false rs.update rs("id")=tid rs.close end if %> <html> <head> <title>酒店登记成功</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link rel="stylesheet" href="system/style.css" type="text/css"> </head> <body> <div align="center"> <table width="60%" border=1 cellpadding=0 cellspacing=0 bordercolor="#999999" bordercolordark=#ffffff bgcolor="#F9F9F9"> <tbody> <tr valign=top bgcolor=#e1f0ff> <td width="431" height="30" background="Images/topBar_bg.gif"> </td> </tr> <tr> <td height="60" valign="middle"><font class="medium"> <p align="center">酒店:<%=request.form("hotelname")%> 注册成功,等待管理员审核!</p> </font></td> </tr> <tr bgcolor=#e1f0ff> <td height="35" background="Images/topBar_bg.gif"> <p align="center"> <input name="button" type="button" onClick=" window.location='User_hotelReg.asp'" value="登记下一个"> <input name="button2" type="button" onClick=" window.location='Userinfo.asp'" value="返回"> </td> </tr> </tbody> </table> </div> </body> </html>